package com.design.pattern.command.projection;

/**
 * 学生
 */
public class Student {
    private String name;

    public Student(String name) {
        this.name = name;
    }

    /**
     * 执行命令
     * @param command 命令
     */
    void execute(Command command){
        System.out.println(name+"执行命令:"+command.getContent());
    }
}
